﻿/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统                                
 *                Web: https://www.corecms.net                      
 *             Author: 大灰灰                                          
 *              Email: jianweie@163.com                                
 *         CreateTime: 2021/1/31 21:45:10
 *        Description: 暂无
 ***********************************************************************/

using System.Collections.Generic;

namespace CoreCms.Net.Model.ViewModels.Api
{
    #region 查询货运公司列表返回实体数据V1

    /// <summary>
    ///     查询货运公司列表返回实体数据V1
    /// </summary>
    public class ShowApiGetExpressCompanyListResultV1
    {
        /// <summary>
        ///     错误说明
        /// </summary>
        public string showapi_res_error { get; set; }

        /// <summary>
        ///     状态码
        /// </summary>
        public int showapi_res_code { get; set; }

        /// <summary>
        ///     返回资源序列
        /// </summary>
        public string showapi_res_id { get; set; }

        /// <summary>
        ///     返回资源主体
        /// </summary>
        public ResultBody showapi_res_body { get; set; }
    }

    public class ResultBody
    {
        public int ret_code { get; set; }
        public bool flag { get; set; }
        public int page { get; set; }
        public int showapi_fee_codepage { get; set; }
        public int allNum { get; set; }
        public string msg { get; set; }
        public int maxSize { get; set; }

        public List<expressCompanyList> expressList { get; set; }
    }

    public class expressCompanyList
    {
        public string imgUrl { get; set; }
        public string simpleName { get; set; }
        public string phone { get; set; }
        public string expName { get; set; }
        public string note { get; set; }
        public string url { get; set; }
    }

    //错误码
    //-1，系统调用错误
    //-2，可调用次数或金额为0
    //-3，读取超时
    //-4，服务端返回数据解析错误
    //-5，后端服务器DNS解析错误
    //-6，服务不存在或未上线
    //-7, API创建者的网关资源不足
    //-1000，系统维护
    //-1002，showapi_appid字段必传
    //-1003，showapi_sign字段必传
    //-1004，签名sign验证有误
    //-1005，showapi_timestamp无效
    //-1006，app无权限调用接口 
    //-1007，没有订购套餐
    //-1008，服务商关闭对您的调用权限
    //-1009，调用频率受限
    //-1010，找不到您的应用
    //-1011，子授权app_child_id无效
    //-1012，子授权已过期或失效
    //-1013，子授权ip受限
    //-1014，token权限无效

    #endregion 查询物流信息

    #region 查询货运公司列表返回实体数据V2
    public class Express_listItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string img_url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 顺丰速运
        /// </summary>
        public string exp_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string com { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string note { get; set; }
    }

    public class Showapi_res_body
    {
        /// <summary>
        /// 
        /// </summary>
        public int ret_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Express_listItem> express_list { get; set; }
        /// <summary>
        /// 查询成功!
        /// </summary>
        public string msg { get; set; }
    }

    public class ShowApiGetExpressCompanyListResultV2
    {
        /// <summary>
        /// 
        /// </summary>
        public string showapi_res_error { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int showapi_res_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string showapi_res_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Showapi_res_body showapi_res_body { get; set; }
    }

    #endregion

    #region 查询物流轨迹返回值V1

    /// <summary>
    ///     查询物流轨迹返回值V1
    /// </summary>
    public class ShowApiGetExpressPollResultV1
    {
        /// <summary>
        ///     错误说明
        /// </summary>
        public string showapi_res_error { get; set; }

        /// <summary>
        ///     状态码
        /// </summary>
        public int showapi_res_code { get; set; }

        /// <summary>
        ///     返回资源序列
        /// </summary>
        public string showapi_res_id { get; set; }

        /// <summary>
        ///     返回资源主体
        /// </summary>
        public ExpressPollResBodyV1 showapi_res_body { get; set; }
    }


    public class ExpressPollResBodyV1
    {
        public long update { get; set; }
        public string upgrade_info { get; set; }
        public string updateStr { get; set; }
        public string logo { get; set; }
        public int dataSize { get; set; }
        public int status { get; set; }
        public int fee_num { get; set; }
        public string tel { get; set; }
        public List<PollDataV1> data { get; set; }

        public string expSpellName { get; set; }
        public string msg { get; set; }
        public string mailNo { get; set; }
        public int queryTimes { get; set; }
        public int ret_code { get; set; }
        public bool flag { get; set; }
        public string expTextName { get; set; }
        public List<object> possibleExpList { get; set; }
    }

    public class PollDataV1
    {
        public string time { get; set; }
        public string context { get; set; }
    }

    #endregion

    #region 查询物流轨迹返回值V2


    public class ShowApiGetExpressPollResultV2
    {
        /// <summary>
        /// 
        /// </summary>
        public string showapi_res_error { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int showapi_fee_num { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int showapi_res_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string showapi_res_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExpressPollResBodyV2 showapi_res_body { get; set; }
    }


    public class PollDataV2
    {
        /// <summary>
        /// 
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string location { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 浙江省-台州市
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 【台州市】已离开 浙江台州分拨交付中心；发往 山东潍坊分拨交付中心
        /// </summary>
        public string context { get; set; }
    }

    public class ExpressPollResBodyV2
    {
        /// <summary>
        /// 
        /// </summary>
        public string delivery_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string nu { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string logo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string original_com { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string com { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tel { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<PollDataV2>? data { get; set; }
        /// <summary>
        /// 查询成功
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string>? possible_exp_list { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int ret_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int showapi_inner_fee_num { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string update_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int query_num { get; set; }
        /// <summary>
        /// 韵达速递
        /// </summary>
        public string com_name { get; set; }
    }

    #endregion


}